package com.xiaoshuidi.cloud.module.rooms.controller.app.entrust.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@Schema(description = "租客端-新增委托请求对象")
public class PersonalEntrustCreateDTO {
    @Schema(description = "姓名")
    @NotNull(message = "姓名不能为空")
    private String name;

    @Schema(description = "联系方式")
    @NotNull(message = "联系方式不能为空")
    private String phone;

    @Schema(description = "来源")
    @NotNull(message = "来源不能为空")
    private String source;

    @Schema(description = "地址")
    @NotNull(message = "地址不能为空")
    private String area;

    @Schema(description = "看房时间")
    @NotNull(message = "看房时间不能为空")
    private LocalDateTime viewingTime;

    @Schema(description = "验证码")
    @NotNull(message = "验证码不能为空")
    private String captcha;

    @Schema(description = "部门Id")
    private Long deptId;

    @Schema(description = "当前登录人ID")
    private Long operatorId;

    @Schema(description = "当前登录人名字")
    private String operatorName;
}
